﻿package mortal.game.view.copy.yanwuCopy
{
    import com.mui.controls.*;
    import extend.language.*;
    import mortal.common.global.*;
    import mortal.component.window.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;
    import mortal.mvc.interfaces.*;

    public class YanwuAcountWin extends ResultBaseWindow
    {
        private var _exRewardTxt1:GTextFiled;
        private var _exRewardTxt2:GTextFiled;
        private var _rewardTxt1:BitmapNumberText;
        private var _rewardTxt2:BitmapNumberText;
        private static var _instance:YanwuAcountWin;

        public function YanwuAcountWin(param1:ILayer = null)
        {
            super(param1);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.YanwuCopyAcountTitle, 211 + 54, 9, this));
            if (1)
            {
                pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.YanwuCopyAcountSmallTitle1, 211 + 54 - 38, 109 - 56, this));
            }
            else
            {
                pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.YanwuCopyAcountSmallTitle2, 211 + 54 - 38, 109 - 56, this));
            }
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.YanwuCopyAcountTxt1, 211 + 54, 159, this));
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.YanwuCopyAcountTxt2, 211 + 54, 209, this));
            pushUIToDisposeVec(UIFactory.gTextField(Language.getString(90406), 300, 250, 220, 20, this));
            pushUIToDisposeVec(UIFactory.gTextField(Language.getString(90407), 300, 350, 220, 20, this));
            this._exRewardTxt1 = UIFactory.gTextField(Language.getStringByParam(90408, 30000), 300, 200, 220, 20, this, GlobalStyle.textFormatLv);
            this._exRewardTxt2 = UIFactory.gTextField(Language.getStringByParam(90408, 30000), 300, 300, 220, 20, this, GlobalStyle.textFormatLv);
            this._rewardTxt1 = UIFactory.bitmapNumberText(300 - 55 + 39, 27 + 213 - 111, "PetGrowYellowNum.png", 18, 21, -2, this, 9, BitmapNumberText.Mid);
            this._rewardTxt2 = UIFactory.bitmapNumberText(300 - 55 + 39, 27 + 213, "PetGrowYellowNum.png", 18, 21, -2, this, 9, BitmapNumberText.Mid);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._exRewardTxt1 = null;
            this._exRewardTxt2 = null;
            this._rewardTxt1 = null;
            this._rewardTxt2 = null;
            return;
        }// end function

        public function updateInfo(param1) : void
        {
            return;
        }// end function

        public static function get instance() : YanwuAcountWin
        {
            if (_instance == null)
            {
                _instance = new YanwuAcountWin;
            }
            return _instance;
        }// end function

    }
}
